//配置路由规则
import { createRouter, createWebHistory } from 'vue-router'
let router= createRouter({
  history: createWebHistory(),
  routes: [
    {
        path: '/',
        redirect: '/ZhuceView'
    },
    {
      path: '/ZhuceView',
      component: () => import('../views/ZhuceView.vue')
    }
    ,
    {
      path: '/ZhuceView2',
      component: () => import('../views/ZhuceView2.vue')
    },
    {
      path: '/LoginView',
      component: () => import('../views/LoginView.vue')
    }
    ,
    {
      path: '/LoginView2',
      component: () => import('../views/LoginView2.vue')
    },
    {
      path: '/UserShow',
      component: () => import('../views/UserShow.vue')
    },
    {
      path: '/XinxiView',
      component: () => import('../views/XinxiView.vue')
    },
    {
      path: '/UsershowView',
      component: () => import('../views/UsershowView.vue')
    },

    {
      path: '/HuankuanView/:xid',
      name: 'HuankuanView',
      component: () => import('../views/HuankuanView.vue')
    },
    {
      path: '/AdminShow',
      component: () => import('../views/AdminShow.vue')
    },
    {
      path: '/TouziAdd',
      component: () => import('../views/TouziAdd.vue')
    },
    {
      path: '/UsertouziView',
      component: () => import('../views/UsertouziView.vue')
    },
    {
      path: '/AdmintouziView',
      component: () => import('../views/AdmintouziView.vue')
    },
    {
      path: '/Usershow1View',
      component: () => import('../views/Usershow1View.vue')
    },
    {
      path: '/Usershow2View',
      component: () => import('../views/Usershow2View.vue')
    }
  ]
})
//导出路由
export default router